Tamara\Wp\Plugin\Services\WCTamaraGateway D

Total Complexity 249
Dependencies 29
Dependents 3
Total lines 2,080
Lines of code 1,405
Logical lines of code 588
Comment lines 350
Methods 74
Properties 17

Methods 74

Method Rating Maintainability Complexity Lines of code
tamaraCheckoutSession()
C
30 29 109
initFormFields()
C
21
8 315
populateTamaraShippingAddress()
A
57 17 13
tamaraCancelOrder()
A
43 12 46
captureWcOrder()
A
42 8 53
getCountryPaymentTypes()
A
47 8 36
populateTamaraAddress()
A
53 9 20
validateRequiredFields()
S
59 8 12
onSaveSettings()
S
47 6 36
verifyApiParams()
S
52 6 24
populateTamaraOrderItems()
S
48 5 33
tamaraCapturePayment()
S
57 6 15
populateTamaraRefundOrderItems()
S
48 5 30
renderTamaraCountryPaymentTypesHtml()
S
50 5 28
initPaymentTitle()
S
54 5 20
populateTamaraWebhook()
S
59 5 15
registerTamaraWebhook()
S
50 4 29
getTamaraCancelUrl()
S
53 4 27
getTamaraFailureUrl()
S
53 4 27
getAvailableSupportedInstalments()
S
46 3 39
getTamaraSuccessUrl()
S
53 3 27
hideTamaraGatewayOnCheckout()
S
61 4 11
populateTamaraOrder()
S
50 3 26
deleteTamaraWebhook()
S
56 3 19
setTamaraIconForPaymentGateway()
S
58 3 14
tamaraOrderReceivedText()
S
62 3 11
createTamaraCheckoutSession()
S
58 2 16
getWebhookId()
S
69 3 7
getCurrentCountryCode()
S
74 3 4
getPaymentTypeTitleMapping()
S
59 2 14
init()
S
58 2 14
initTamaraClient()
S
61 2 12
renderPaymentTypeDescription()
S
61 2 12
getTamaraWebhookUrl()
S
63 2 12
getTamaraIpnUrl()
S
63 2 12
renderHelpTextsHtml()
S
54 1 24
populateTamaraMerchantUrl()
S
57 1 18
getErrorMap()
S
56 1 18
getDefaultBillingCountryCode()
S
78 2 3
getPayInXTitleAr()
S
70 2 5
getStoreBaseCountryCode()
S
78 2 3
processRewriteRules()
S
69 2 7
populateMinLimit()
S
71 2 5
populateTamaraDefaultDescription()
S
65 2 9
isBeautifyMerchantUrlsEnabled()
S
78 2 3
populateMaxLimit()
S
71 2 5
getPayInXTitle()
S
70 2 5
getPayByLaterTitleAr()
S
78 2 3
isCartTotalValid()
S
71 2 5
getPayByLaterTitle()
S
78 2 3
prepareDebugLogDownloadLink()
S
63 2 10
getPaymentTypes()
S
68 2 7
populateTamaraConsumer()
S
60 1 13
initSettingAttributes()
S
60 1 13
initBaseAttributes()
S
62 1 11
initTamaraStatus()
S
63 1 9
isLiveMode()
S
79 1 3
populateTamaraBillingAddress()
S
76 1 4
refreshPaymentTypeCache()
S
77 1 4
getShippingInfo()
S
69 1 7
process_payment()
S
80 1 3
processAdminOptions()
S
81 1 3
buildTamaraClient()
S
68 1 7
initSettings()
S
81 1 3
getPaymentTypeMapping()
S
72 1 6
isSandboxMode()
S
79 1 3
raiseAdminError()
S
73 1 6
get_option_key()
S
81 1 3
raiseAdminErrorOnNonSelectedPaymentTypes()
S
73 1 6
buildCountryPaymentTypesCacheKey()
S
71 1 6
getCurrencyToCountryMapping()
S
69 1 7
isWebhookEnabled()
S
80 1 3
updateThisSettingsToOptions()
S
66 1 10
__construct()
S
78 1 4